added samples
[windows-sources.git] / sdk / samples / all in on code / Visual Studio 2010 / CSSL4COMInterop / MainPage.xaml
blobdcc43b43f403a4f3ccbbc2a2f8fba651dd3e0087
1 <UserControl x:Class="CSSL4COMInterop.MainPage"
2     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4     xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
5     xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
6     mc:Ignorable="d" Height="300" Width="400"
7     d:DesignHeight="300" d:DesignWidth="400" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk">
8 <Grid x:Name="LayoutRoot" Background="White">
9         <Grid.RowDefinitions>
10             <RowDefinition Height="Auto"/>
11             <RowDefinition Height="*"/>
12         </Grid.RowDefinitions>
13         <StackPanel>
14             <Button Content="Export data to Notepad" Click="TextExport_Click"/>
15             <Button Content="Export data to Word" Click="WordExport_Click">
16                 <Button.ContentTemplate>
17                     <DataTemplate>
18                         <StackPanel Orientation="Horizontal">
19                             <TextBlock Text="{Binding}"/>
20                             <TextBlock Text=" ("/>
21                             <CheckBox IsTabStop="False"
22                                       Checked="CheckBox_StateChanged"
23                                       Unchecked="CheckBox_StateChanged"
24                                       Content="Print directly with default printer"/>
25                             <TextBlock Text=")"/>
26                         </StackPanel>
27                     </DataTemplate>
28                 </Button.ContentTemplate>
29             </Button>
30         </StackPanel>
31         <sdk:DataGrid Grid.Row="1" Name="dataGrid1" AutoGenerateColumns="True"/>
32     </Grid>
33 </UserControl>